<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script type="text/javascript" charset="utf-8" src="ueditor/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="ueditor/ueditor.all.min.js"> </script>

</head>
<body>
	<form action="?a=doadd" method="post">
		
		<table border="1" width="800">
			<tr>
				<td>标题</td>
				<td> <input type="text" name="title"> </td>
			</tr>
			<tr>
				<td>栏目</td>
				
					<td>
					<select name="cid" id="">
					<?php foreach ($projects as $value): ?>
						<option value="<?php echo $value['id'];?>">
							<?php echo $value['_cname'];?>
						</option>
					<?php endforeach ?>
					</select>
				</td>
				
				
			</tr>
			<tr>
				<td>正文</td>
				<td>
					<script id="editor" name="content" type="text/plain" style="width:800px;height:300px;"></script>
					<script>
						 var ue = UE.getEditor('editor');
					</script>
				</td>
			</tr>
			<tr>
				<td colspan="2"><input type="submit" value="提交文章"></td>
			</tr>
		</table>


	</form>
</body>
</html>